package com.ayu.shortlink.settlement.service.handler.strategy;

import com.ayu.shortlink.settlement.common.enums.DiscountTypeEnum;
import com.ayu.shortlink.settlement.service.bases.strategy.AbstractDiscountStrategy;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 直接消费券
 */
@Component
public class DirectlyConsumeStrategy implements AbstractDiscountStrategy {
    @Override
    public BigDecimal handler(BigDecimal totalAmount, Map consumeRule) {
        return BigDecimal.ZERO;
    }

    @Override
    public Integer mark() {
        return DiscountTypeEnum.DIRECTLY_CONSUME.getType();
    }
}